package tchk.xyz.lingyuntutorminiprogram.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat; // 导入
import lombok.Data;
import java.io.Serializable;
import java.time.LocalDate; // 导入
import java.time.LocalTime; // 导入

@Data
public class TeacherSchedule implements Serializable {
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    private Long userId;

    // [核心修改] 使用 LocalDate 和 LocalTime 类型
    @JsonFormat(pattern = "yyyy-MM-dd")
    private LocalDate scheduleDate;

    @JsonFormat(pattern = "HH:mm:ss")
    private LocalTime startTime;

    @JsonFormat(pattern = "HH:mm:ss")
    private LocalTime endTime;

    private String status;
}